package com.qianclass.talklive.app.bean;

/**
 * Created by admin on 2017/1/4.
 * <p>
 * 更新时间 2017/1/4
 * 更新描述 ${TODO}
 */

public class TextWhiteBoardBean {

    /**
     * message: {"type":"whiteboard","whiteboard":{"currentpage":1,"docserver":"http://xxx:8080/","filedir":"","fileid":1235,"filename":"ST_level1_U1-L2.pdf","objdata":{"colour":"0XFF0000","fontlib":"Tahoma","fontsize":30,"string":"222"},"objid":19273432,"objtype":"text","pagenum":11,"rect":{"bottom":156,"left":758,"right":824,"top":115},"sqlid":"","subcommand":"addobject"}}
     */

    private MessageBean message;

    public MessageBean getMessage() {
        return message;
    }

    public void setMessage(MessageBean message) {
        this.message = message;
    }

    public static class MessageBean {
        /**
         * type : whiteboard
         * whiteboard : {"currentpage":1,"docserver":"http://xxx:8080/","filedir":"","fileid":1235,"filename":"ST_level1_U1-L2.pdf","objdata":{"colour":"0XFF0000","fontlib":"Tahoma","fontsize":30,"string":"222"},"objid":19273432,"objtype":"text","pagenum":11,"rect":{"bottom":156,"left":758,"right":824,"top":115},"sqlid":"","subcommand":"addobject"}
         */

        private String type;
        private WhiteboardBean whiteboard;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public WhiteboardBean getWhiteboard() {
            return whiteboard;
        }

        public void setWhiteboard(WhiteboardBean whiteboard) {
            this.whiteboard = whiteboard;
        }

        public static class WhiteboardBean {
            /**
             * currentpage : 1
             * docserver : http://xxx:8080/
             * filedir :
             * fileid : 1235
             * filename : ST_level1_U1-L2.pdf
             * objdata : {"colour":"0XFF0000","fontlib":"Tahoma","fontsize":30,"string":"222"}
             * objid : 19273432
             * objtype : text
             * pagenum : 11
             * rect : {"bottom":156,"left":758,"right":824,"top":115}
             * sqlid :
             * subcommand : addobject
             */

            private int currentpage;
            private String      docserver;
            private String      filedir;
            private int         fileid;
            private String      filename;
            private ObjdataBean objdata;
            private int         objid;
            private String      objtype;
            private int         pagenum;
            private RectBean    rect;
            private String      sqlid;
            private String      subcommand;

            public int getCurrentpage() {
                return currentpage;
            }

            public void setCurrentpage(int currentpage) {
                this.currentpage = currentpage;
            }

            public String getDocserver() {
                return docserver;
            }

            public void setDocserver(String docserver) {
                this.docserver = docserver;
            }

            public String getFiledir() {
                return filedir;
            }

            public void setFiledir(String filedir) {
                this.filedir = filedir;
            }

            public int getFileid() {
                return fileid;
            }

            public void setFileid(int fileid) {
                this.fileid = fileid;
            }

            public String getFilename() {
                return filename;
            }

            public void setFilename(String filename) {
                this.filename = filename;
            }

            public ObjdataBean getObjdata() {
                return objdata;
            }

            public void setObjdata(ObjdataBean objdata) {
                this.objdata = objdata;
            }

            public int getObjid() {
                return objid;
            }

            public void setObjid(int objid) {
                this.objid = objid;
            }

            public String getObjtype() {
                return objtype;
            }

            public void setObjtype(String objtype) {
                this.objtype = objtype;
            }

            public int getPagenum() {
                return pagenum;
            }

            public void setPagenum(int pagenum) {
                this.pagenum = pagenum;
            }

            public RectBean getRect() {
                return rect;
            }

            public void setRect(RectBean rect) {
                this.rect = rect;
            }

            public String getSqlid() {
                return sqlid;
            }

            public void setSqlid(String sqlid) {
                this.sqlid = sqlid;
            }

            public String getSubcommand() {
                return subcommand;
            }

            public void setSubcommand(String subcommand) {
                this.subcommand = subcommand;
            }

            public static class ObjdataBean {
                /**
                 * colour : 0XFF0000
                 * fontlib : Tahoma
                 * fontsize : 30
                 * string : 222
                 */

                private String colour;
                private String fontlib;
                private int    fontsize;
                private String string;

                public String getColour() {
                    return colour;
                }

                public void setColour(String colour) {
                    this.colour = colour;
                }

                public String getFontlib() {
                    return fontlib;
                }

                public void setFontlib(String fontlib) {
                    this.fontlib = fontlib;
                }

                public int getFontsize() {
                    return fontsize;
                }

                public void setFontsize(int fontsize) {
                    this.fontsize = fontsize;
                }

                public String getString() {
                    return string;
                }

                public void setString(String string) {
                    this.string = string;
                }
            }

            public static class RectBean {
                /**
                 * bottom : 156
                 * left : 758
                 * right : 824
                 * top : 115
                 */

                private float bottom;
                private float left;
                private float right;
                private float top;

                public float getBottom() {
                    return bottom;
                }

                public void setBottom(float bottom) {
                    this.bottom = bottom;
                }

                public float getLeft() {
                    return left;
                }

                public void setLeft(float left) {
                    this.left = left;
                }

                public float getRight() {
                    return right;
                }

                public void setRight(float right) {
                    this.right = right;
                }

                public float getTop() {
                    return top;
                }

                public void setTop(float top) {
                    this.top = top;
                }
            }
        }
    }
}
